package edu.cs.usask.ca.silver.plugin.rcp.editors;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

import edu.cs.usask.ca.silver.businesslogic.ids.ParameterID;

/**
 * The class holds the array of parameter that is associated with a scenario
 * that is being displayed. It returns the parameter array to the table viewer
 * label provider that is associated with a scenario
 * 
 * MY NOT NEED THIS CLASS IN THE FUTURE
 * 
 * @author Mike Taylor
 * 
 */
public class TableContentProvider implements IStructuredContentProvider {

	ParameterID[] parameterIds = null;

	/**
	 * Constructor
	 * 
	 * @param parameterIds
	 *            holds ids associated with a scenario
	 */
	public TableContentProvider(ParameterID[] parameterIds) {

		this.parameterIds = parameterIds;

	}

	public void dispose() {
		// TODO Auto-generated method stub

	}

	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
		// TODO Auto-generated method stub

	}

	public Object[] getElements(Object inputElement) {

		return parameterIds;
	}/* end of return objects */

}/* end of class */
